{extend name="public:layout" /}
{block name="title"}编辑行业{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 行业列表</a></li>
                <li class="active">编辑行业</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">分类名称</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入分类名称"
                               name="site_class_name" value="{$info.site_class_name}" datatype="*"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">绑定域名</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入绑定域名"
                               name="bind_domain" value="{$info.bind_domain}" datatype="*"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">保证金</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入保证金"
                               name="bind_amount" value="{$info.bind_amount}" datatype="*"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">绑定商品类目</label>
                    <div class="col-sm-4">
                        <select class="form-control" name="bind_goods_cid">
                            <option>选择绑定类目</option>
                            {volist name="category.goods_category" id="vo"}
                            <option value="{$vo.cid}" {eq name="info.bind_goods_cid" value="$vo['cid']"}selected{/eq}>{$vo.cat_name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">绑定cms类目</label>
                    <div class="col-sm-4">
                        <select class="form-control" name="bind_cms_cid">
                            <option>选择绑定CMS栏目</option>
                            {volist name="category.cms_category" id="vo"}
                            <option value="{$vo.cid}" {eq name="info.bind_cms_cid" value="$vo['cid']"}selected{/eq}>{$vo.cat_name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">排序</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入排序"
                               name="site_class_sort" value="{$info.site_class_sort}" datatype="n"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">
                            保存内容
                        </button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        ajaxSubForm('#btnSub');
    })
</script>
{/block}